<!DOCTYPE html5>
<html>
    <head>
        {include file="public/header"}
        <link href="/admin/vendor/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
        <title>查看学员</title>
    </head>
    <body>
        <div class="col-lg-12 col-sm-12">
            <form id="form" class="form form-horizontal" action="show">
                <div class="form-group">
                    <div class="col-lg-4">
                        <input class="form-control" type="text" name="name">
                    </div>
                    <div class="col-lg-4">
                        <a href="javascript:;" class="btn btn-primary" onclick="edu.search('form',this)">查询</a>
                    </div>
                </div>
            </form>

        </div>
        <div class="col-lg-12">
            <table width="100%" class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th>名字</th>
                        <th>入职时间-毕业时间</th>
                        <th>性别</th>
                        <th>电话号码</th>
                        <th>转态</th>
                        <th>课程</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    {volist name="data" id="s"}
                    <tr id="tr-{$s.stu_id}">
                        <td>{$s.stu_name}</td>
                        <td><span class="label label-success">{$s.stu_endtime}</span>--<span class="label label-info">{$s.stu_entertime}</span></td>
                        <td>
                            {switch name="s.stu_sex"}
                            {case value="0"}女{/case}
                            {case value="1"}男{/case}
                            {case value="2"}其他{/case}
                            {/switch}
                        </td>
                        <td>{$s.stu_tel}</td>
                        <td>
                            {switch name="s.stu_state"}
                            {case value="0"}<div data-id="{$s.stu_id}" role="state"><span class="fa fa-flag"></span></div>{/case}
                            {case value="1"}<div data-id="{$s.stu_id}" role="state"><span class="fa fa-power-off"></span></div>{/case}
                            {/switch}
                        </td>
                        <td>
                            <div data-href="/index.php/admin/course/add.html?id={$s.stu_id}" data-id="course-create-{$s.stu_id}" data-text="{$s.stu_name}" type="button" class="btn btn-primary btn-xs" role="newtab">添加进度</div>
                            <div data-href="/index.php/admin/course/ls.html?id={$s.stu_id}" data-id="course-check-{$s.stu_id}" data-text="{$s.stu_name}" type="button" class="btn btn-primary btn-xs" role="newtab">查看进度</div>
                            
                        </td>
                        <td>
                            <div data-href="__admin__/student/edit.html?id={$s.stu_id}" type="button" class="btn btn-success btn-xs" data-id="stu-edit-{$s.stu_id}" data-text="编辑-{$s.stu_name}" role="newtab">修改</div>
                            <div  type="button" class="btn btn-danger btn-xs" data-id="{$s.stu_id}" onclick="edu.remove(this)">删除</div>
                        </td>
                    </tr>

                    {/volist}
                </tbody>
            </table>
            {$data}

        </div>
        {include file="public/plane"}
        {include file="public/remove"}
        {include file="public/javascript"}
        <script type="text/javascript" src="/admin/script/student/index.js"></script>
    </body>
</html>
